import sys
import os
import logging

logging.basicConfig(level=logging.INFO)

cur_file_path, filename = os.path.split(os.path.abspath(__file__))
sys.path.append(f"{cur_file_path}/../")

from l0n0lnet.socks import socks5_server
from l0n0lnet import run, add_quit_func

s = socks5_server(b'0.0.0.0', 9999)

def on_close():
    s.close()
    print("closing")

add_quit_func(on_close)

run()